package com.itheima.test.reflect.getconstructor;

public class Student {
    private String name;
    private int age;

    public Student() {
        System.out.println("这是public修饰的空参构造");
    }

    public Student(String name, int age) {
        System.out.println("这是public修饰的String,name带参构造");
        System.out.println("name；"+name+",age:"+age);
    }

    private Student(String name){
        System.out.println("这是private修饰的String带参构造");
        System.out.println("name；"+name);

    }

}
